<?php
if(count(get_included_files()) == 1)
	die("Direct access not permitted.");

define('ACCESS_CONTROLER_LIST',  dirname(__FILE__) . '/resources/etc/acl.xml');

$auth_options = array(
		  'dsn' => "mysql://root:@localhost/blog",
		  'table' => "members",
		  'usernamecol' => "username",
		  'passwordcol' => "password"
		  );
global $auth_options;

// set the parameters to connect to your db
$dbinfo = array(
    'hostspec' => 'localhost',
    'database' => 'blog',
    'phptype'  => 'mysql',
    'username' => 'root',
    'password' => ''
);

// tell Translation2 about your db-tables structure,
// if it's different from the default one.
// NB: the default db structure is:
//
// Table "langs" (available languages and meta info)
// +----+------+------+----------+------------+
// | ID | name | meta | encoding | error_text |
// +----+------+------+----------+------------+
//
// Table "strings" (translations)
// +----+---------+----+----+----+-----+
// | ID | page_id | en | de | it | ... |
// +----+---------+----+----+----+-----+
// You can have one table per translation, instead
// of one table for all the languages
//
$params = array(
    'langs_avail_table' => 'languages',
    'lang_id_col'     => 'ID',
    'lang_name_col'   => 'name',
    'lang_meta_col'   => 'meta',
    'lang_errmsg_col' => 'error_text',
    'strings_tables'  => array(
                            'en' => 'texts',
                            'nl' => 'texts'
                         ),
    'string_id_col'      => 'ID',
    'string_page_id_col' => 'page_id',
    'string_text_col'    => '%s'  //'%s' will be replaced by the lang code
);

$driver = 'mdb2';

global $dbinfo, $params, $driver;

?>